<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Sidebar
    </ui:define>

    <ui:define name="description">
        Sidebar is a panel component displayed as an overlay.
    </ui:define>

    <ui:param name="documentationLink" value="/components/sidebar" />

    <ui:define name="implementation">

        <p:sidebar widgetVar="sidebar1" baseZIndex="10000">
            <h1 style="font-weight:normal">Left Sidebar</h1>
            <p:commandButton value="Cancel" oncomplete="PF('sidebar1').hide()"/>
        </p:sidebar>

        <p:sidebar widgetVar="sidebar2" position="right" baseZIndex="10000">
            <h1 style="font-weight:normal">Right Sidebar</h1>
            <p:commandButton value="Cancel" oncomplete="PF('sidebar2').hide()"/>
        </p:sidebar>

        <p:sidebar widgetVar="sidebar3" position="top" baseZIndex="10000">
            <h1 style="font-weight:normal">Top Sidebar</h1>
            <p:commandButton value="Cancel" oncomplete="PF('sidebar3').hide()"/>
        </p:sidebar>

        <p:sidebar widgetVar="sidebar4" position="bottom" baseZIndex="10000">
            <h1 style="font-weight:normal">Bottom Sidebar</h1>
            <p:commandButton value="Cancel" oncomplete="PF('sidebar4').hide()"/>
        </p:sidebar>

        <p:sidebar widgetVar="sidebar5" fullScreen="true" baseZIndex="10000">
            <h1 style="font-weight:normal">Full Screen Sidebar</h1>
            <p:commandButton value="Cancel" oncomplete="PF('sidebar5').hide()"/>
        </p:sidebar>
        
        <p:commandButton icon="pi pi-arrow-right" oncomplete="PF('sidebar1').show()" />
        <p:commandButton icon="pi pi-arrow-left" oncomplete="PF('sidebar2').show()" />
        <p:commandButton icon="pi pi-arrow-down" oncomplete="PF('sidebar3').show()" />
        <p:commandButton icon="pi pi-arrow-up" oncomplete="PF('sidebar4').show()" />
        <p:commandButton icon="pi pi-external-link" oncomplete="PF('sidebar5').show()" />
        
    </ui:define>

</ui:composition>